package basic.thread.student.better;

public class GetStudentThread implements Runnable {

	private Student student;
	private int x;

	public GetStudentThread(Student student) {
	    this.student = student;
	}

	@Override
	public void run() {
		while (x < 20) {
			student.get();
		}
	}

}
